package com.chenfan.mcn.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chenfan.mcn.dao.LiveSettlementCommodityMapper;
import com.chenfan.common.extension.mybatisplus.enhanced.EnhancedService;
import com.chenfan.mcn.model.LiveSettlementCommodity;
import com.chenfan.mcn.model.dto.LiveSettlementCommodityDto;
import com.chenfan.mcn.model.vo.LiveContractCommodityVo;
import com.chenfan.mcn.model.vo.LiveSettlementCommodityExportVo;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 直播结算商品表 服务类
 * </p>
 *
 * @author lizhejin
 * @since 2023-04-27
 */
public interface LiveSettlementCommodityService extends EnhancedService<LiveSettlementCommodityMapper, LiveSettlementCommodity> {

    /**
     * 导出
     *
     * @param dto
     * @param response
     * @return
     */
    void exportExcel(LiveSettlementCommodityDto dto, HttpServletResponse response);

    /**
     * 导出结算商品
     *
     * @param dto
     * @param response
     * @return
     */
    void exportSettlementExcel(LiveSettlementCommodityDto dto, HttpServletResponse response);

    /**
     * 查询列表-分页
     *
     * @param dto
     * @return
     */
    Page<LiveContractCommodityVo> page(LiveSettlementCommodityDto dto);

    /**
     * 查询详情
     *
     * @param lccId
     * @return
     */
    LiveContractCommodityVo detail(Long lccId);

    /**
     * 分页查询
     * @param dto
     * @return
     */
    Page<LiveSettlementCommodityExportVo> pageV2(LiveSettlementCommodityDto dto);
}
